package sy.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import sy.dao.SysRoleAccountMappingDaoI;
import sy.model.SysRoleAccountMapping;
import sy.service.SysRoleAccountMappingServiceI;

@Service("sysRoleAccountMappingService")
public class SysRoleAccountMappingServiceImpl implements SysRoleAccountMappingServiceI {
	
	private static final Logger logger = Logger.getLogger(SysRoleAccountMapping.class);
	private SysRoleAccountMappingDaoI sysRoleAccountMappingDao;


	public SysRoleAccountMappingDaoI getSysRoleAccountMappingDao() {
		return sysRoleAccountMappingDao;
	}

	@Autowired
	public void setSysRoleAccountMappingDao(SysRoleAccountMappingDaoI sysRoleAccountMappingDao) {
		this.sysRoleAccountMappingDao = sysRoleAccountMappingDao;
	}

	@Override
	public Serializable save(SysRoleAccountMapping sysRoleAccountMapping) {
		
		return sysRoleAccountMappingDao.save(sysRoleAccountMapping);
	}

	@Override
	public void remove(SysRoleAccountMapping sysRoleAccountMapping) {
		// TODO Auto-generated method stub
		sysRoleAccountMappingDao.remove(sysRoleAccountMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleAccountMappingServiceI#update(sy.model.SysRoleAccountMapping)
	 */
	@Override
	public void update(SysRoleAccountMapping sysRoleAccountMapping) {
		// TODO Auto-generated method stub
		sysRoleAccountMappingDao.update(sysRoleAccountMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleAccountMappingServiceI#list()
	 */
	@Override
	public List<SysRoleAccountMapping> list() {
		// TODO Auto-generated method stub
		return sysRoleAccountMappingDao.list();
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleAccountMappingServiceI#getSysRoleAccountMappingById(java.lang.String)
	 */
	@Override
	public SysRoleAccountMapping getSysRoleAccountMappingById(String id) {
		// TODO Auto-generated method stub
		return sysRoleAccountMappingDao.getSysRoleAccountMappingById(id);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleAccountMappingServiceI#listSysRoleAccountMappingByKey(java.lang.String)
	 */
	@Override
	public List<SysRoleAccountMapping> listSysRoleAccountMappingByKey(String key) {
		// TODO Auto-generated method stub
		return sysRoleAccountMappingDao.listSysRoleAccountMappingByKey(key);
	}



}
